package com.codeyang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.codeyang.domain.ProdTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 描述:
 * @author CodeYang_Site
 * @version 2021/5/24 22:34
 */
@Mapper
public interface ProdTagMapper extends BaseMapper<ProdTag> {
    /**
     * 根据状态等 全查询标签信息
     * @return
     */
    @Select("SELECT id,title,style FROM `prod_tag` where status = 1 and shop_id = 1 ORDER BY seq desc")
    List<ProdTag> selectFrontTagList();
}